<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			var reg = /\w{6,12}/;
			var reg2 = /^1[35789]\d{9}$/; //new RegExp("^1[35789]\d{9}$");
			var reg3 = new RegExp("^1[35789]\\d{9}$");
			alert(reg);
			var username = "zhang";
			var flag = reg.test(username);
			alert(reg2.test("13245678987"));
			alert(reg3.test("13245678987"));
		</script>
	</head>
	<body>
	</body>
</html>
